Returns a collection object containing the frames in a FrameSet or the iFrames on a normal page.
#include <IE.au3>
_IEFrameGetCollection ( ByRef $o_object [, $i_index = -1] )
Parameters
$o_object | Object variable of an InternetExplorer.Application, Window or Frame object |
$i_index | Optional: specifies whether to return a collection or indexed instance 0 or positive integer returns an indexed instance -1 = (Default) returns a collection |
Return Value
Success: | Returns an object variable containing the Frames collection, @EXTENDED = Frame count |
Failure: | Returns 0 and sets @ERROR |
@Error: | 0 ($_IEStatus_Success) = No Error |
3 ($_IEStatus_InvalidDataType) = Invalid Data Type | |
5 ($_IEStatus_InvalidValue) = Invalid Value | |
7 ($_IEStatus_NoMatch) = No Match | |
@Extended: | Contains invalid parameter number |
Remarks
None.
Related
_IEIsFrameSet
Example
; *******************************************************
; Example 1 - Open frameset example, get collection of frames
; and loop through them displaying their source URL's
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("frameset")
$oFrames = _IEFrameGetCollection ($oIE)
$iNumFrames = @extended
For $i = 0 to ($iNumFrames - 1)
$oFrame = _IEFrameGetCollection ($oIE, $i)
MsgBox(0, "Frame Info", _IEPropertyGet ($oFrame, "locationurl"))
Next